package lesson4;

public class Demo1 {
    public static void main(String[] args) {

        int num = 100;
        Person person = new Person(100);
        String str = "100";
        System.out.println(num);
        System.out.println(person);
        System.out.println(str);
        System.out.println("***********************");
        changeValue(num);
        changeValue(person);
        changeValue(str);
        System.out.println(num);
        System.out.println(person);
        System.out.println(str);
    }

    public static void changeValue(int value){
        value = 234;

    }

    public static void changeValue(Person value){
        value.setAge(234);
    }

    public static void changeValue(String value){
        value = "234";
    }

    //234  234 234
    //234 234 ?
    //5 234 234 100
    //6 100 100 100
    //7 234 234 100
    //8 100 234 234
    //9 234 234 100
    //10 100 100 234
    //11 234 234 100
    //12 234 234 100
    //13 234 234 100
    //14 234 234 100
    //15 100 234 100
    //16 100 234 100
    //17 234 234 ?
}
